package com.ww.springboot.springstudy.config;

import org.springframework.beans.factory.config.YamlPropertiesFactoryBean;
import org.springframework.core.io.ClassPathResource;

/**
 * todo
 *
 * @author wanwei
 * @since 2023-03-07 22:14
 */
public class YamlConfigTest {

    public static void main(String[] args) {
        YamlPropertiesFactoryBean yamlPropertiesFactoryBean = new YamlPropertiesFactoryBean();
        yamlPropertiesFactoryBean.setResources(new ClassPathResource("application.yml"));
        System.out.println(yamlPropertiesFactoryBean.getObject());
    }
}
